//
//  MainTopView.h
//  YKZB
//
//  Created by 曾少伟 on 2017/3/17.
//  Copyright © 2017年 曾少伟. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MainTopView;
@protocol MainTopViewDelegate <NSObject>

- (void)mainTopView:(MainTopView *)mainTopView clickBtn:(NSInteger)idx;

@end

@interface MainTopView : UIView

@property (nonatomic,weak)id <MainTopViewDelegate> zDelegate;

- (instancetype)initWithFrame:(CGRect)frame titlesNameArr:(NSArray *)titlesNameArr;

- (void)scrollToBtn:(NSInteger)idx;
@end
